package com.gljx.web.service;

import com.gljx.web.Entity.CustomLog;
import com.gljx.web.Entity.personData;

import java.util.List;
import java.util.Map;


public interface CustomLogService {

	Map<String, Object> selectPage(int pindex, String psql, int psize);

	Map<String, Object> selectPageCount(String psql);
	
	void addLog(String fnameL2, String fdescriptionL2, String studentId, String fcreatorid, String... companyId);

	/**
	 * 查询编码
	 * @param  String tableName 表名
	 * @return
	 */
	String selectFunmber(String tableName,String name,String companyId);

	List<CustomLog> selectCustomLogById(String fid);
	
	List<personData> selectHealthyAll();
	
	List<personData> selectMarriageAll();
	
	List<personData> selectPoliticalAll();
	
	List<personData> selectFamilyNameAll();
	
	List<personData> selectEdcationAll();
	
	List<String> queryCarTypeAll();

    /**
     * 批量添加日志
     *
     * @param customLogs
     * @return
     */
    int insertCustomLog(List<CustomLog> customLogs);

    List<CustomLog> selectCustomLogByInfo(String fcompanyid, String fnameL2, String fdescriptionL2, String beginTime, String endTime, String student);

    void batchInsert(String[] studentName, String[] studentId, String meg, String function, String[]... cfstudentno);

    void batchInsertState(String[] studentName, String[] studentId, String function, String[] cfstudentno, String meg, String operation);
}
